package com.wujin.provider.dao;

import com.wujin.provider.model.User;
import com.wujin.provider.model.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Wu Jin
 * @create 2018-03-28 上午 9:59
 */
@Mapper
public interface UserDao {

    // @Select("select * from user")
    List<User> findAll();

    @Select("select id,name,'aaa' as address from user")
    List<UserBean> findAll2();

    int insert(User user);

}
